/*
 * modules/common文件夹为公共vuex状态管理器不可随意更改
 * 各业务工程需要vuex请自行建立独立文件
 * */
import Vue from "vue";
import Vuex from "vuex";
import app from "./modules/common/app";
import user from "./modules/common/user";
import contractDraft from "./modules/common/contractDraft";
import equipmentExitAdd from "./modules/common/equipmentExitAdd";
import siteManagement from "./modules/common/siteManagement";
import getters from "./getters";
import business from "./modules/common/business";
import finanInventory from "./modules/common/finanInventory";
import moveStore from "./modules/common/moveStore";
import equipmentYanshou from "./modules/common/equipmentYanshou";
import invoiceStore from "./modules/common/invoiceStore";
import addRouters from "./modules/common/generateRoutes";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    user,
    addRouters,
    contractDraft,
    equipmentExitAdd,
    siteManagement,
    business,
    finanInventory,
    moveStore,
    equipmentYanshou,
    invoiceStore
  },
  getters
});

export default store;
